<{include file="header.html"}>
<link rel="stylesheet" type="text/css" href="<{$smarty.const.APPLICATION_URL}>/lib_scripts/zoom-image/css/ion.zoom.css" />    
<script type="text/javascript" src="<{$smarty.const.APPLICATION_URL}>/lib_scripts/zoom-image/js/ion-zoom/ion.zoom.min.js" charset="utf-8"></script>
    
       
	<div class="one_third">

			<div class="box_tool">
				<div class="box_head"><{$smarty.const._LB_TOOLBOX|utf8_escape_html}></div>
				<div class="box_content">
                    <a href="<{$smarty.const.APPLICATION_URL}>/gallery/photo_form/?id=<{$album->ID}>">
						<{$smarty.const._LB_ADD_GALLERY_PHOTO|utf8_escape_html}>
					</a>
				</div>
			</div>
			<div class="spacer"></div>
	</div>

	<div class="two_third">
		<div class="box_two_third">
		<div class="box_head"><{$smarty.const._LB_GALLERY_ALBUM|utf8_escape_html}>&nbsp;:&nbsp;<{$album->TITLE|utf8_escape_html}> (<{$album_gallery->N}>)</div>
		<div class="box_content">
			<div>
				<{if $album_gallery->N > 0 }>
					<{while $album_gallery->fetch()}>
						<div class="object">
							<div class="head">
								<span class="right">
                                    <a href="<{$smarty.const.APPLICATION_URL}>/gallery/photo_form/?id=<{$album->ID}>&pid=<{$album_gallery->ID}>"><img src="<{$smarty.const.APPLICATION_URL}>/images/<{$smarty.const.IMAGE_NAME_EDIT_SMALL}>" alt="" class="small" title="<{$smarty.const._LB_EDIT|utf8_escape_html}>" /></a>
                                    <{if $album_gallery->NBR_PHOTO == 0}>
                                        <a onclick="return confirm('<{$smarty.const._MSG_ALBUM_DELETE_CONFIRM|utf8_escape_html}>')"  href="<{$smarty.const.APPLICATION_URL}>/gallery/delete/?id=<{$album->ID}>">
                                            <img class="small" src="<{$smarty.const.APPLICATION_URL}>/images/<{$smarty.const.IMAGE_NAME_DELETE_SMALL}>" alt=""  title="<{$smarty.const._LB_DELETE|utf8_escape_html}>" />
                                        </a>
                                    <{else}>
                                        <img class="small" src="<{$smarty.const.APPLICATION_URL}>/images/<{$smarty.const.IMAGE_NAME_DELETE_NOT}>" alt=""  title="<{$smarty.const._LB_DELETE|utf8_escape_html}>" />
                                    <{/if}>
								</span>
								<img src="<{$output->buildImagePath($smarty.const.IMAGE_NAME_NEWS)}>" alt="" class="small" />
								<{$album_gallery->TITLE|utf8_escape_html}>
                                <{if $album_gallery->IMAGE}>
                                <div class="content">
                                    <p><a href="<{$smarty.const.IMAGE_URL}>/<{$album_gallery->IMAGE}>" class="gallery_1"><img  style="display: block; opacity: 1; cursor: pointer;" src="<{$smarty.const.IMAGE_URL}>/thumb<{$album_gallery->IMAGE}>" alt=""></a></p>
									<div style="clear: both;"></div>
                                </div>
                                <{/if}>
							</div>
						</div>
					<{/while}>
				<{else}>
					<{$smarty.const._LB_NO_ITEM|utf8_escape_html}>
				<{/if}>
			</div>
		</div>
        <div class="pagination">
            <{$pager->display()}>
        </div>
	</div>
	</div>
<script type="text/javascript">
        $.noConflict();
        $(".gallery_1").ionZoom();
    </script>
<{include file="footer.html"}>